package edu.zut.pioneer.store.domain;


import edu.zut.pioneer.base.domain.BaseEntity;

import javax.persistence.*;
import java.io.Serial;

@Entity
@Table(name="store")

public class Store extends BaseEntity<Long> {

    @Column(name="name")
    private String name;
    @JoinColumn(name = "store_type_id")
    @Column(name="Store_type_id")
    private long type_id;


    public Store(){}

    public Store(String name, long type_id) {
        this.name = name;
        this.type_id = type_id;
    }

    @Override
    public String toString() {
        return "Store{" +"name='" + name + '\'' + ", type_id='" + type_id +'}';
    }



    public String getName() {
        return name;
    }

    public long getType_id() {
        return type_id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setType_id(long type_id) {
        this.type_id = type_id;
    }
}
